package cn.hl.hm.vo;

import cn.hl.hm.entity.DriverVehicle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 车辆
 * @Author: xianghan
 * @Date: 2017/10/26 11:02
 **/
public class VehicleVo {
    private Integer vehicleId;
    private String plateNumber;
    private String vehicleTpye;
    private Double vehicleLoad;
    private Double vehicleLength;
    private Integer checkStatus;
    private Integer vehicleTpyeId;
    private Integer vehicleLengthId;
    private String transportLicense;
    private String drivingLicensePic;
    private String drivingLicenseGuaPic;
    private Date createTime;
    /** 审核失败原因 **/
    private String driverUnpassReason;

    private Byte workStatus;


    public Byte getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(Byte workStatus) {
        this.workStatus = workStatus;
    }

    public Integer getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(Integer vehicleId) {
        this.vehicleId = vehicleId;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    public String getVehicleTpye() {
        return vehicleTpye;
    }

    public void setVehicleTpye(String vehicleTpye) {
        this.vehicleTpye = vehicleTpye;
    }

    public Double getVehicleLength() {
        return vehicleLength;
    }

    public void setVehicleLength(Double vehicleLength) {
        this.vehicleLength = vehicleLength;
    }

    public Integer getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
    }

    public Integer getVehicleTpyeId() {
        return vehicleTpyeId;
    }

    public void setVehicleTpyeId(Integer vehicleTpyeId) {
        this.vehicleTpyeId = vehicleTpyeId;
    }

    public Integer getVehicleLengthId() {
        return vehicleLengthId;
    }

    public void setVehicleLengthId(Integer vehicleLengthId) {
        this.vehicleLengthId = vehicleLengthId;
    }

    public String getTransportLicense() {
        return transportLicense;
    }

    public void setTransportLicense(String transportLicense) {
        this.transportLicense = transportLicense;
    }

    public String getDrivingLicensePic() {
        return drivingLicensePic;
    }

    public void setDrivingLicensePic(String drivingLicensePic) {
        this.drivingLicensePic = drivingLicensePic;
    }

    public String getDrivingLicenseGuaPic() {
        return drivingLicenseGuaPic;
    }

    public void setDrivingLicenseGuaPic(String drivingLicenseGuaPic) {
        this.drivingLicenseGuaPic = drivingLicenseGuaPic;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public VehicleVo() {
    }

    public String getDriverUnpassReason() {
        return driverUnpassReason;
    }

    public void setDriverUnpassReason(String driverUnpassReason) {
        this.driverUnpassReason = driverUnpassReason;
    }

    public Double getVehicleLoad() {
        return vehicleLoad;
    }

    public void setVehicleLoad(Double vehicleLoad) {
        this.vehicleLoad = vehicleLoad;
    }

    public VehicleVo(DriverVehicle driverVehicle){
        this.vehicleId=driverVehicle.getVehicleId();
        plateNumber=driverVehicle.getPlateNumber();
        vehicleTpyeId=driverVehicle.getVehicleTypeId();
        vehicleLengthId=driverVehicle.getVehicleLengthId();
        checkStatus=driverVehicle.getStatus()==null?0:driverVehicle.getStatus().intValue();
        transportLicense=driverVehicle.getTransportLicense();
        drivingLicensePic=driverVehicle.getDrivingLicensePic();
        drivingLicenseGuaPic=driverVehicle.getDrivingGuaPic();
        createTime=driverVehicle.getCreateTime();
        driverUnpassReason=driverVehicle.getDriverUnpassReason();
        workStatus=driverVehicle.getWorkStatus();
    }
}
